package com.nhim.cms.admin.server;

import java.util.List;

import org.springframework.stereotype.Service;

import com.nhim.cms.dao.ContentTypeElementDefinitionDAO;
import com.nhim.cms.domain.ContentTypeElementDefinition;


@Service("ContentTypeElementDefinitionService")
public class ContentTypeElementDefinitionService {
public static List<ContentTypeElementDefinition> findByContentTypeId(Integer id) {
	List<ContentTypeElementDefinition> result = ContentTypeElementDefinitionDAO.getInstance().findByContentTypeId(id);
	System.out.println("Name: " + result.get(0).getElementDefinition().getName());
		return result;
	}
}
